// 自动生成模板Invitation
package business

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 邀请 结构体  Invitation
type Invitation struct {
	global.GVA_MODEL
	QuestionnaireUuid string `json:"questionnaireUuid" form:"questionnaireUuid" gorm:"column:questionnaire_uuid;comment:问卷编号;size:32;"` //问卷编号
	Name              string `json:"name" form:"name" gorm:"column:name;comment:被邀请人;"`                                                 //被邀请人
	Phone             string `json:"phone" form:"phone" gorm:"column:phone;comment:电话;size:13;"`                                        //电话
	St                int    `json:"st" form:"st" gorm:"column:st;comment:状态（1为答题，2为未答题,3未提交）;size:8;"`                                 //状态
	UserId            uint   `json:"userId" form:"userId" gorm:"column:user_id;comment:用户Id;size:12;"`                                  //用户Id
}

// TableName 邀请 Invitation自定义表名 bs_invitation
func (Invitation) TableName() string {
	return "bs_invitation"
}
